import mockjs from 'mockjs'
import { MockMethod } from 'vite-plugin-mock'
export default [
  {
    url: '/api/city/table',
    method: 'get',
    response: ({ body }) => {
      return {
        code: 0,
        data: [
          {
            key: '1',
            index: 1,
            region: '浙江省杭州市',
            name: '张璐',
            phone: '17623812082',
            loginCount: 10,
            lastLogin: '2023-06-28  16 : 34 : 22',
            quhao: 125,
            dianhuahao: 143302,
            emial: 'web2345@qq.com',
            juese: '市级管理员',
          },
          {
            key: '2',
            index: 2,
            region: '广东省东莞市',
            name: '李斯',
            phone: '13478722308',
            loginCount: 5,
            lastLogin: '2022-03-14  16 : 34 : 22',
            quhao: 367,
            dianhuahao: 143302,
            emial: 'web2345@qq.com',
            juese: '市级管理员',
          },
          {
            key: '3',
            index: 3,
            region: '山西省运城市',
            name: '秦扶摇',
            phone: '15287361208',
            loginCount: 45,
            lastLogin: '2021-02-16  16 : 34 : 22',
            quhao: 181,
            dianhuahao: 143302,
            emial: 'web2345@qq.com',

            juese: '病区管理员',
          },
        ],
      }
    },
  },
  {
    url: '/api/hospital/table',
    method: 'get',
    response: ({ body }) => {
      return {
        code: 0,
        data: [
          {
            key: '1',
            index: 1,
            hospitalCode: '244621',
            hospitalName: '浙江省某某医院',
            region: '浙江省杭州市',
            responsiblePerson: '张璐',
            contactNumber: '17623812082',
            loginCount: 10,
            lastLoginTime: '2023-06-28  12 : 23 : 22',
            quhao: 12,
            dianhuahao: 143302,
            freezeCount: 2,
            emial: 'web2345@qq.com',
            juese: '医院管理员',
            phone: '1348723091',
            bianma: '1213532',
            name: '李斯',
          },
          {
            key: '2',
            index: 2,
            hospitalCode: '244621',
            hospitalName: '浙江省某某医院',
            region: '广东省东莞市',
            responsiblePerson: '李斯',
            contactNumber: '13478722308',
            loginCount: 5,
            lastLoginTime: '2022-03-14   17 : 55 : 12',
            quhao: 12,
            dianhuahao: 143302,
            freezeCount: 2,
            emial: 'web2345@qq.com',
            juese: '医院管理员',
            phone: '1348723091',
            bianma: '1213532',
            name: '张毅',
          },
          {
            key: '3',
            index: 3,
            hospitalCode: '244621',
            hospitalName: '浙江省某某医院',
            region: '山西省运城市',
            responsiblePerson: '秦扶摇',
            contactNumber: '15287361208',
            loginCount: 45,
            lastLoginTime: '2021-02-16  9 : 22 : 01 ',
            quhao: 12,
            dianhuahao: 143302,
            freezeCount: 2,
            emial: 'web2345@qq.com',
            juese: '医院管理员',
            phone: '1348723091',
            bianma: '1213532',
            name: '王伟',
          },
        ],
      }
    },
  },
  {
    url: '/api/inpatientWard/table',
    method: 'get',
    response: ({ body }) => {
      return {
        code: 0,
        data: [
          {
            key: '1',
            hospitalCode: '003883',
            hospitalName: '东莞市黄江医院',
            area: '广东省东莞市',
            category1: '重症医学科',
            category2: '综合ICU',
            leader: '陆锦',
            phone: '1234567890',
            loginCount: 10,
            lastLogin: '2023-06-28 15:30:00',
            juese: '病区管理员',
            emial: 'web2345@qq.com',
            children: [
              {
                hospitalCode: '225378',
                hospitalName: '重症科',
                area: '东莞市',
                category1: '骨科',
                category2: '内科',
                leader: '李国茂',
                phone: '1234567890',
                loginCount: 5,
                lastLogin: '2023-06-28 10:30:00',
                juese: '病区管理员',
                emial: 'web2345@qq.com',
              },
            ],
          },
          {
            key: '2',
            hospitalCode: '892931',
            hospitalName: '杭州市邵逸夫医院',
            area: '浙江省杭州市',
            category1: '血液科',
            category2: '肠胃科',
            leader: '樊锦',
            phone: '19876543220',
            loginCount: 8,
            lastLogin: '2023-06-27 09:30:00',
            juese: '病区管理员',
            emial: 'web2345@qq.com',
          },
        ],
      }
    },
  },
  {
    url: '/api/applyFor/table',
    method: 'get',
    response: ({ body }) => {
      return {
        code: 0,
        data: [
          {
            id: 1,
            index: 1,
            hospitalCode: '234512',
            hospitalName: '广东省外科医院',
            hospitalLevel: '一级医院',
            area: '广东省东莞市',
            applicant: '陆锦',
            applicationTime: '2023-02-22  15 : 22 : 15',
            opinion: true,
            dingji: '二级',
            dingdeng: '三等',
            leibie: '中书省',
            shifou: '是',
            xingzhi: '教学医院',
            zhuzhichuce: '浙江',
            chuangweishu: 22,
            hushishu: 33,
            dianhua: 13449898922,
            fuzeren: '张三',
            fuzerenss: 13449898922,
            emai: '22@qq.com',
            suozaidi: '广东省',
            chengnuoshu: '江门市江海区人民医院承诺书文件.pdf',
          },
          {
            id: 2,
            index: 2,
            hospitalCode: '124623',
            hospitalName: '山西省内科医院',
            hospitalLevel: '二级医院',
            area: '山西省运城市',
            applicant: '樊篱',
            applicationTime: '2022-01-22  11 : 55 : 11',
            opinion: false,
            dingji: '三级',
            dingdeng: '二等',
            leibie: '山西省',
            shifou: '是',
            xingzhi: '教学医院',
            zhuzhichuce: '山西',
            chuangweishu: 22,
            hushishu: 33,
            dianhua: 13449898922,
            fuzeren: '里斯',
            fuzerenss: 13449898922,
            emai: 'web2323@qq.com',
            suozaidi: '浙江省杭州市',
            chengnuoshu: '山西省运城市人民医院承诺书文件.pdf',
          },
        ],
      }
    },
  },
] as MockMethod[]
